import http from '@/http/http'
import { } from '@/views/workbench/interface/interface'
import {GetUrl} from '@/interface/index'
import {DayListParams} from '@/views/workbench/interface/interface'
enum Api {
  sortedList = '/manage/admin/workSpace/sortedList',
  progressMap='/manage/admin/workSpace/progressMap',
  countryList='/manage/admin/workSpace/countryList',
  dayList='/manage/admin/workSpace/dayList',
  incoMap='/manage/admin/workSpace/incoMap',
  totalData='/manage/admin/workSpace/totalData'
}
//工作台 排行榜
export const sortedListApi = async () => {
  return await http.get(Api.sortedList)
}
//工作台 入户进度
export const progressMapApi = async (params:GetUrl) => {
  return await http.getUrl(Api.progressMap,params)
}
//工作台 每天入户数趋势图
export const dayListApi = async (params:DayListParams) => {
  return await http.post(Api.dayList,params)
}
//工作台 每个村/社区上报户数统计图
export const countryListApi = async (params:GetUrl) => {
  return await http.getUrl(Api.countryList,params)
}
//工作台 疫苗接种情况分析图
export const incoMapApi = async (params:GetUrl) => {
  return await http.getUrl(Api.incoMap,params)
}
//获取宁乡汇总数据
export const totalDataApi = async () => {
  return await http.get(Api.totalData)
}